<?php		
 	foreach ($schedles as $s){
		$team1id=$s->team1;
		$team2id=$s->team2;
		$team1=$repTeam->map($repTeam->readTeam($team1id));
		$team2=$repTeam->map($repTeam->readTeam($team2id));
		if ($team1->divisionID==$divID){
?>